package com.ym.manager.admin.user.model;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.time.LocalDateTime;

/**
 * @ClassName UserFriendsPO
 * @Description 用户好友关联表
 * @Author qxj
 * @Date 2021/5/9 10:06
 * @Version 1.0
 */
@Data
@Accessors(chain = true)
@Table(name = "user_friend")
public class BaseUserFriendsPO {

    /**
     * id
     */
    @Id
    public Long id;

    /**
     * 用户 id
     */
    public String userId;

    /**
     * 好友 id
     */
    public String friendId;

    /**
     * 好友备注名称
     */
    public String friendRemark;

    /**
     * 好友备注描述
     */
    public String friendDesc;

    /**
     * 状态【false：删除,true：使用】
     */
    public Boolean status;

    /**
     * 创建时间
     */
    public LocalDateTime createTime;

    /**
     * 修改时间
     */
    public LocalDateTime updateTime;

    /**
     * 申请id
     */
    public Long applyId;

    /**
     * 消息免打扰
     */
    public Boolean disturb;

    /**
     * 好友昵称
     */
    @Transient
    public String nickName;
    /**
     * 还有头像
     */
    @Transient
    public String avatarUrl;
    /**
     * 好友性别
     */
    @Transient
    public Integer gender;

    /**
     * 群备注
     */
    @Transient
    public String userGroupRemark;

    /**
     * 是否拉黑
     */
    @Transient
    public Long isHidden;

    @Transient
    public String invitedInfo;

    @Transient
    public String inviteId;

    @Transient
    public String level;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getFriendId() {
        return friendId;
    }

    public void setFriendId(String friendId) {
        this.friendId = friendId;
    }

    public String getFriendRemark() {
        return friendRemark;
    }

    public void setFriendRemark(String friendRemark) {
        this.friendRemark = friendRemark;
    }

    public String getFriendDesc() {
        return friendDesc;
    }

    public void setFriendDesc(String friendDesc) {
        this.friendDesc = friendDesc;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Long getApplyId() {
        return applyId;
    }

    public void setApplyId(Long applyId) {
        this.applyId = applyId;
    }

    public Boolean getDisturb() {
        return disturb;
    }

    public void setDisturb(Boolean disturb) {
        this.disturb = disturb;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getUserGroupRemark() {
        return userGroupRemark;
    }

    public void setUserGroupRemark(String userGroupRemark) {
        this.userGroupRemark = userGroupRemark;
    }

    public Long getIsHidden() {
        return isHidden;
    }

    public void setIsHidden(Long isHidden) {
        this.isHidden = isHidden;
    }

    public String getInvitedInfo() {
        return invitedInfo;
    }

    public void setInvitedInfo(String invitedInfo) {
        this.invitedInfo = invitedInfo;
    }

    public String getInviteId() {
        return inviteId;
    }

    public void setInviteId(String inviteId) {
        this.inviteId = inviteId;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }
}
